#ifndef COLOR_H_
#define COLOR_H_

#include <oslib/oslib.h>
#include <pspgu.h>
#include "Object.h"

class Color : public Object
{
	protected:
		int r,g,b,a;
	public:
		virtual ~Color(){}
		Color();
		Color(int r, int g, int b);
		Color(int r, int g, int b, int a);
		Color(OSL_COLOR c);
		Color operator= (OSL_COLOR c);
		
		void set(Color c);
		void set(OSL_COLOR color);
		void set(int r, int g, int b);
		void set(int r, int g, int b, int a);
		
		void setR(int r);
		void setG(int g);
		void setB(int b);
		void setA(int a);
		
		int getR();
		int getG();
		int getB();
		int getA();
		
		unsigned int gu_c();
		OSL_COLOR osl_c();
		OSL_COLOR toOSL_COLOR();
		
		virtual string toString();
};

#endif /*COLOR_H_*/
